package com.radiant.data.entity;

import java.util.Date;

import javax.xml.bind.annotation.XmlRootElement;

import com.radiant.data.annotation.Entity;
import com.radiant.data.annotation.Persist;

@XmlRootElement
@Entity(name="Child")
public class Child {

	public static final String DEFAULT_CHILD_NAME = "";

	@Persist(name="childId", itemName=true)
	private String childId;

	@Persist(name="name")
	private String name;
	
	@Persist(name="sex")
	private Sex sex;

	@Persist(name="dateOfBirth")
	private Date dateOfBirth;

	public String getChildId() {
		return childId;
	}

	public void setChildId(String childId) {
		this.childId = childId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Sex getSex() {
		return sex;
	}

	public void setSex(Sex sex) {
		this.sex = sex;
	}

	public Date getDateOfBirth() {
		return dateOfBirth;
	}

	public void setDateOfBirth(Date dateOfBirth) {
		this.dateOfBirth = dateOfBirth;
	}
	
}
